package com.lcn.api.feign;

import com.lcn.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "main-service")
public interface UsersServiceFeign {

    /**
     * 更新用户头像
     * @param userId
     * @param face
     * @return
     */
    @PostMapping("/userinfo/updateFace")
    GraceJSONResult updateFace(@RequestParam("userId") String userId, @RequestParam("face") String face);

    /**
     * 更新朋友圈背景图
     * @param userId
     * @param url
     * @return
     */
    @PostMapping("/userinfo/updateFriendCircleBg")
    GraceJSONResult updateFriendCircleBg(@RequestParam("userId") String userId, @RequestParam("url") String url);

    /**
     * 更新聊天背景图
     * @param userId
     * @param url
     * @return
     */
    @PostMapping("/userinfo/updateChatBg")
    GraceJSONResult updateChatBg(@RequestParam("userId") String userId, @RequestParam("url") String url);

}
